package com.zygh.lz.entity.app;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


@Data
@ApiModel(value = "AppTraffic对象", description = "主干道信息")
public class AppTraffic implements Serializable {
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "道路编号")
    @NotNull(message = "道路编号不能为空")
    @TableField("`code`")
    private String code;

    @ApiModelProperty(value = "道路名称")
    private String name;

    @ApiModelProperty(value = "道路类别")
    private String type;

    @ApiModelProperty(value = "区域坐标")
    private String area;

    @ApiModelProperty(value = "所属部门Id")
    private Integer deptId;

    @ApiModelProperty(value = "所属部门名称")
    @TableField(exist = false)
    private String deptName;


    @ApiModelProperty(value = "道路类别名称")
    @TableField(exist = false)
    private String mold;


}